package observables;

import edit.MajorRecordHolder;
import seiboth.observables.IndexedObservable;
import skyproc.MajorRecord;

public class RecordHolderObservable extends IndexedObservable {
	
	/**
	 * Calls the <code>setChanged</code> method in <tt>IndexedObservable</tt>
	 * and then the <code>notifyObserver</code> method.
	 * @param index The index to the <tt>IndexedObserver</tt> to notify.
	 * @param number An object that is a subclass of <tt>Number</tt> (e.g. <tt>Integer</tt> or <tt>Double</tt>)
	 */
	public void autoUpdate(int index, MajorRecordHolder record)
	{
		this.setChanged();
		this.notifyObserver(index, record);
	}

}
